Skip to content

TypeScript 5.9.2#19

Open
dsherret wants to merge 5 commits intodenoland:branch_v5.9.2from
dsherret:branch_v5.9.2_patch
Open

TypeScript 5.9.2#19
dsherret wants to merge 5 commits intodenoland:branch_v5.9.2from
dsherret:branch_v5.9.2_patch

Conversation

@dsherret
Copy link
Copy Markdown

@dsherret dsherret commented Sep 2, 2025

Remotes:

Actions:

  1. Closed previous "Upgrade to TS 5.8.3” PR
  2. git fetch upstream
  3. git checkout upstream/release-5.9 and ensured it was on the commit of the release.
  4. git checkout -b branch_v5.9.2
  5. git push denoland
  6. git checkout -b branch_v5.9.2_patch
  7. Cherry picked changes in from denoland/branch_5.8.3_patch into denoland/branch_v5.9.2_patch and squashed the commits
  8. npm install && npx hereby services dts-services (to build)
    • If you get a diagnostic about globals or globalThisSymbol not existing, it's because they're called denoGlobals/nodeGlobals and denoGlobalThisSymbol/nodeGlobalThisSymbol in this fork
    • If there are new usages of globals or globalThisSymbol in checker.ts, update that code to be properly handled using either denoGlobals/nodeGlobals or denoGlobalThisSymbol/nodeGlobalThisSymbol (note: globalThisType refers to the global this type and not the global globalThis type)
  9. cp built/local/typescript.js ../deno/cli/tsc/00_typescript.js
  10. Copied the .d.ts files from built/local to ../deno/cli/tsc/dts then deleted files that didn't seem necessary (ex. typescript.internal.d.ts).
  11. Reviewed the dts files and made any modifications (reverts) necessary
  12. Search for "5.8.3" in the Deno codebase and replace with the new version
  13. Check if ScriptElementKind in the ts codebase has changed and if so, align with ScriptElementKind in cli/lsp/tsc.rs
  14. Ran cargo test check and cargo test lsp
  15. Opened this PR with base branch_v5.9.3 from denoland repo

https://github.com/denoland/deno/tree/main/cli/tsc#how-to-upgrade-typescript

@dsherret dsherret force-pushed the branch_v5.9.2_patch branch 3 times, most recently from 462776e to e4d7b58 Compare December 3, 2025 19:26
@dsherret dsherret force-pushed the branch_v5.9.2_patch branch from 33c4e5e to 7935ec8 Compare December 4, 2025 20:03
bartlomieju pushed a commit to denoland/deno that referenced this pull request Dec 9, 2025
This adds a new "node" lib that's included by default and can be
excluded by providing a custom `"lib": [...]` typescript compiler option
without the `"node"` value.

If it detects a `@types/node` package in the files being type checked it
will skip injecting the `lib.node.d.ts` file.

* Uses `npm:@types/node@24.2.0`
* See tools/update_types_node.ts for the build script.
* denoland/deno_npm#127 (will integrate this one
later)
* denoland/typescript-go#16
* denoland/TypeScript#19 (last two commits)

Closes #30963
@dsherret dsherret force-pushed the branch_v5.9.2_patch branch from 3dcbc05 to c5cb3b2 Compare December 19, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants